def ihrm_common_assert(r, status_code, success, code, message):
    assert status_code == r.status_code
    assert r.json().get('success') is success
    assert code == r.json().get('code')
    assert message in r.json().get('message')
